﻿using System;
using System.Windows.Input;
using System.Xml.Serialization;

namespace FrontDisplay
{
    [Serializable]
    public class HotkeyInfo
    {
        [XmlAttribute]
        public bool Win { get; set; }
        
        [XmlAttribute]
        public bool Ctrl { get; set; }
        
        [XmlAttribute]
        public bool Alt { get; set; }
        
        [XmlAttribute]
        public bool Shift { get; set; }

        [XmlAttribute]
        public Key Key { get; set; }

        [XmlIgnore]
        public bool IsNull
        {
            get
            {
                return Key == Key.None || (!Win && !Ctrl && !Alt && !Shift);
            }
        }
    }
}
